package com.bsc.rtc.lib.libraries.SingltonDemo;

public class Test {

    static void say(){
        TestSingllton  testSingllton=TestSingllton.getInstance();
        System.out.println("say  "+testSingllton.hashCode());
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    static void sayHi(){
        TestSingllton  testSingllton=TestSingllton.getInstance();
        System.out.println("sayHi  "+testSingllton.hashCode());
        System.out.println("sayHi");

    }
    public static void main(String[] args) {
        say();
        sayHi();
    }
}
